Skip to main content

Get Users

AutomatR.MicrosoftTeams.Activities.GetUsers

The "Get Users" activity in AutomatR for Microsoft Teams retrieves a collection of users in Teams, providing detailed user information and collaboration insights. This activity returns a collection page (ICollectionPage<User>) containing user objects, allowing you to access and analyze user data within your automation workflows.

Properties

NameDescription
Misc
Display NameThe display name of the activity. A display name is automatically generated when you indicate a target.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Get Users" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultOutputs a collection page (ICollectionPage<User>) containing detailed information about the retrieved users in Teams. This collection includes properties such as user ID, display name, email address, and more.

How to use:

  1. Drag and drop the "Get Users" activity onto the workflow.
  2. Optionally, configure the delay.
  3. Execute the workflow to retrieve a collection of users in Microsoft Teams.

Example: Consider an example where the "Get Users" activity is used to retrieve a collection of users in Microsoft Teams:

Get Users:
Delay: 2
Result: teamsUsers

In this example, the activity waits for 2 seconds before executing and retrieves a collection of users in Microsoft Teams. The resulting teamsUsers collection page contains detailed information about each user for further processing within the workflow.